import Vue from 'vue'
import Vuex from 'vuex'

import mutations from './mutations.js'
import actions from './actions.js'
import getters from './getters.js'

Vue.use(Vuex)

// data数据信息
const state = {
  cartlist: [],
  sclist: [],
  istrue: false, // 是否收藏
  isLogin: false, // 是否登录
}

// 导出 ES6
export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters
})
